﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SYYPurpleInfo extends IMessageBase
    {
        public var yypurple:int;
        public var monthIsGet:int;
        public var yearIsGet:int;
        public const _type:int = 15268;
        public static var _regist:SYYPurpleInfo = new SYYPurpleInfo(true);

        public function SYYPurpleInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SYYPurpleInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.yypurple);
            param1.writeInt(this.monthIsGet);
            param1.writeInt(this.yearIsGet);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.yypurple = param1.readInt();
            this.monthIsGet = param1.readInt();
            this.yearIsGet = param1.readInt();
            return;
        }// end function

    }
}
